import React, { Component } from 'react'
import { Card } from "antd"

//state接口
interface IState { }

//props接口
interface IProps {
    title: React.ReactNode
}

export default class ListContainer extends Component<IProps, IState> {

    render() {
        return (
            <Card
                title={this.props.title}
                bordered={false}
                headStyle={{ fontSize: '20px' }}
            >
                {this.props.children}
            </Card>
        )
    }
}

